filetype off
call pathogen#incubate()
call pathogen#helptags()


"Personal Configuration
colorscheme darkblue
filetype on
filetype plugin on
filetype plugin indent on
set nu
set cursorline
"highlight CursorLine term=bold cterm=bold guibg=Grey40
let mapleader=','

set foldmethod=indent
set foldlevel=99
"为特定文件类型载入相关缩进文件
filetype indent on
"Expand tab to spaces
set expandtab
"设定tab长度为4
set tabstop=4
"size of an 'indent'
set shiftwidth=4
"设置按BackSpace的时候可以一次删除4个空格
set softtabstop=4
"搜索时高亮显示被找到的文本
set hlsearch
"删除所有行尾空格
nnoremap <F12> :%s/[ \t\r]\+$//g<CR>
"自动缩进所有代码
nmap <F9> gg=G``


"Jump between buffer
map bn :bn<CR>
map bp :bp<CR>
map bd :bd<CR>
"<number><C-^> can jump to the given number buffer
"<C-^> will jump to the buffer openned last time
map bb <C-^>


"Jump between quickfix issue
map cn :cn<CR>
map cp :cp<CR>


map <leader>n :NERDTreeToggle<CR>
map <leader>td <Plug>TaskList


"Python Error Detection
let g:pep8_map='<leader>8'
let g:pyflakes_use_quickfix = 0
"Modify the color for error
highlight SpellBad term=bold cterm=bold ctermbg=Yellow 

autocmd FileType python set omnifunc=pythoncomplete#Complete
"let g:SuperTabDefaultCompletionType = "context"
map <leader>j :RopeGotoDefinition<CR>
map <leader>r :RopeRename<CR>
